package abstract01.factory;

import abstract01.java.HuaWeiPhone;
import abstract01.java.HuaWeiRouter;
import abstract01.java.IponeProduct;
import abstract01.java.Router;

/**
 * @author feng
 * @Date 2021/10/14 21:54
 *         华为系列
 */
public class HuaWeiFactory implements ProductFactory {


    //生产手机的工厂
    public IponeProduct PhoneFactory(){
      return new HuaWeiPhone();
    }

    //生产路由器的工厂
    public Router routerFactory(){
     return new HuaWeiRouter();
    }

}
